﻿using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Spire.Barcode;

namespace Barcode
{
	public class SpireBarcode
	{
		public void GetBarcode()
		{
			BarcodeSettings settings = new BarcodeSettings()
			{
				AutoResize = true,
				BottomText = "hello",
				BarHeight = 200,
				Data = "123",
				Type = BarCodeType.Code128
			};
			BarCodeGenerator bar = new BarCodeGenerator(settings);
			var img = bar.GenerateImage();
			img.Save("d:\\1.png", ImageFormat.Png);

		}
	}
}
